﻿<Window x:Class="FileRenamer.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Amastaneh File Renamer" 
        Height="520" Width="640" 
        MinHeight="400" MinWidth="400" 
        FontSize="14" 
        WindowStartupLocation="CenterScreen" Icon="app.ico">
    <DockPanel Margin="12,6">
        <StackPanel DockPanel.Dock="Top" Height="Auto" Margin="0,6,0,12">
            <TextBlock Text="Amastaneh File Renamer" FontSize="20" FontWeight="Bold"/>
            <TextBlock Text="This file renamer helps to rename files from old names to new names based on excel guide file. You can choose you root folder and an excel file for rename. In excel file (in first sheet) put old filenames in column 'A' and new names in column 'B' and press on Run button." FontSize="12" TextWrapping="Wrap"/>
        </StackPanel>
        <DockPanel DockPanel.Dock="Top" Height="32" Margin="0,6">
            <Label VerticalContentAlignment="Center" Content="Root Folder:"/>
            <Button Name="ButtonFolderBrowse" DockPanel.Dock="Right" Width="36" VerticalContentAlignment="Center" Content="..." Height="32" VerticalAlignment="Top" Click="ButtonFolderBrowse_Click" />
            <TextBox Name="TextBoxFolder" Margin="6,0" TextWrapping="NoWrap" VerticalContentAlignment="Center" Text="D:\Repository" />
        </DockPanel>
        <DockPanel DockPanel.Dock="Top" Height="32" Margin="0,6">
            <Label VerticalContentAlignment="Center" Content="Rename Excel File:"/>
            <Button Name="ButtonExcelFileBrowse" DockPanel.Dock="Right" Width="36" VerticalContentAlignment="Center" Content="..." Click="ButtonExcelFileBrowse_Click" />
            <TextBox Name="TextBoxExcel" Margin="6,0" TextWrapping="NoWrap" VerticalContentAlignment="Center" Text="D:\Repository\guide.xls" />
        </DockPanel>
        <Button DockPanel.Dock="Top" Name="ButtonRun" Content="Run" Width="120" Height="32" Margin="0,6" Click="ButtonRun_Click" />
        <TextBox Name="TextBoxLog"
                 Background="LightYellow"
                 Margin="0,6" Height="Auto" TextWrapping="Wrap"
                 VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" />
    </DockPanel>
</Window>
